extends State

@onready var animated_sprite: AnimatedSprite2D = $"../../AnimatedSprite"
@onready var player: Player = $"../.."


func enter():
	animated_sprite.play("Idle")
	
func process_logic(delta: float):
	pass

func input_logic(event: InputEvent):
	
	if event.is_action_pressed("Shoot") and PlayerState.CurrentInputState == PlayerState.InputState.Shoot:
		player.player_shoot.emit()
		state_machine.transition_to("Attack")

func exit():
	pass
